package training.oop.inheritance;

public class Child extends Parent{

	
	String tempVariable;
	
	FinalClassWithoutChildren finalObject = new FinalClassWithoutChildren();
	
	public Child(String name, String id){
		super(name, id);
		
		System.out.println("Child constructor with name and Id");
		
	}
	
	public void sayHelloFromChild(String name){
		System.out.println("Hello from Child : " + name);
		
		System.out.println("Name from parent :" + super.getName());
		
		System.out.println("protected field Name value : " +  name);
	}
	
	// A parent
	//B child
	
	//B is A

}
